<template>
	<view>
		<u-navbar title-color="#fff" back-icon-color="#333333" :is-fixed="false" :is-back="false">
			<view class="slot-wrap">
				<view class="slot-wrap-left" @tap="back">
					<u-icon name="arrow-left"></u-icon>
				</view>
				<view class="slot-wrap-title">我的问诊</view>
				<text class="common-active-text" @click="toDetail">明细</text>
			</view>
		</u-navbar>
		<view class="deposit-content">
			<image src="@/static/tabbar/my/deposit.png" mode="" class="deposit-content-img"></image>
			<view class="deposit-content-title mb-30">
				账户余额(元)
			</view>
			<view class="deposit-content-money mb-30">
				{{ (300).toFixed(2) }}
			</view>
			<view class="deposit-content-settled mb-30">
				待结算:9.00元
			</view>
			<view @click="toWithdrawal" class="common-btn">申请提现</view>
			<!-- <view  @click="toNavigator('查看预约')">查看预约</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			// 返回
			back(){
				uni.navigateBack()
			},
			// 去详情
			toDetail(){
				uni.navigateTo({
					url:"/pages/mine/deposit/viewDetails"
				})
			},
			// 去提现
			toWithdrawal(){
				uni.navigateTo({
					url:"/pages/mine/deposit/withdrawal"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "@/static/css/common-navbar.scss";

	.deposit-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 106rpx;
		margin: 0 auto;
		width: 300rpx;

		&-img {
			width: 260rpx;
			height: 160rpx;
		}

		&-title {
			font-size: 28rpx;
			font-weight: 500;
			color: #666666;
		}

		&-money {
			font-size: 60rpx;
			font-weight: bold;
			color: #333333;
		}

		&-settled {
			font-size: 28rpx;
			font-weight: 500;
			color: #666666;
		}
	}
</style>
